import { request } from '@/request/index'

export const login = (data: Record<string, any>) => {
    return request('/public/login', data, 'POST')
}

export const register = (data: Record<string, any>) => {
    return request('/public/register', data, 'POST')
}

export const getVerificationCode = (data: { email: string }) => {
    return request('/public/getVerificationCode', data, 'POST')
}